package com.toman.JavaBean;


import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * 车间月计划关联的日计划
 * 
 * @author toman
 * @email sunlightcs@gmail.com
 * @date 2018-11-08 14:23:54
 */
@Data
public class DeviceHouseMonthDayPlanEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Long id;
	/**
	 * 月计划ID
	 */
	private Long monthPlanId;
	/**
	 * 日期
	 */
	private String day;
	/**
	 * 计划产量
	 */
	private Integer planOutput=0;
	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 系统采集产量
	 */
	private Integer reportOutput;

	/**
	 * 完成率
	 */
	private String completeRate;

	/**
	 * 完工数
	 */
	private Long finishCount;

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		DeviceHouseMonthDayPlanEntity entity = (DeviceHouseMonthDayPlanEntity) o;
		return Objects.equals(day, entity.day);
	}

	@Override
	public int hashCode() {
		return Objects.hash(day);
	}

	/**
	 *  是否已配置日计划 0未配置 1已配置
	 */
	private Integer hasConfigDayPlan;
}
